package com.kexuexiong.common.entity;

import com.baomidou.mybatisplus.annotation.*;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>功能描述</p>
 *
 * @author xy
 * @version 1.0
 * @ClassName TestPO.java
 * @date 2021年11月2021/11/29日 11:28
 */
@Data
@TableName("test")
public class TestPO {

    @TableId(type = IdType.AUTO)
    private Integer id;

    @TableField("name")
    private String name;

    @TableField("price")
    private BigDecimal price;

    @JsonFormat(pattern = "yy-MM-dd")
    @TableField("create_date")
    private Date createDate;

    @TableField("modify_date")
    private Date modifyDate;

    @Version
    @TableField("version")
    private Integer version;
}
